<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="common/head.jsp"%>
<%@ taglib prefix="fm" uri="http://www.springframework.org/tags/form" %>
<div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>供应商管理页面 >> 供应商添加页面</span>
        </div>
        <div class="providerAdd">
        <fm:form id="providerForm" name="providerForm" method="post" enctype="multipart/form-data" modelAttribute="provider">
          
			<input type="hidden" name="method" value="add">
                <!--div的class 为error是验证错误，ok是验证成功-->
                <div class="">
                    <label for="proCode">供应商编码：</label>
                    <fm:input  id="proCode" path="proCode"/>
                  <fm:errors path="proCode"/>
					<!-- 放置提示信息 -->
					<font color="red"></font>
                </div>
                <div>
                    <label for="proName">供应商名称：</label>
                    <fm:input id="proName" path="proName"/>
                 <fm:errors path="proName"/>
					<font color="red"></font>
                </div>
                <div>
                    <label for="proContact">联系人：</label>
           
                   <fm:input id="proContact" path="proContact"/>
                   <fm:errors path="proContact"/>
					<font color="red"></font>

                </div>
                <div>
                    <label for="proPhone">联系电话：</label>
                 
                    <fm:input path="proPhone" id="proPhone"/>
				<fm:errors path="proPhone"/>
					<font color="red"></font>
                </div>
                <div>
                    <label for="proAddress">联系地址：</label>
                    <fm:input path="proAddress"  id="proAddress" />
                   
                </div>
                <div>
                    <label for="proFax">传真：</label>
                   
                    <fm:input path="proFax" id="proFax"/>
                </div>
                <div>
                    <label for="proDesc">描述：</label>
                    <fm:input path="proDesc" id="proDesc"/>
                    
                </div>
                      <div>
                	<input type="hidden" id="errorinfo" value="${uploadFileError}"/>
                    <label for="a_idPicPath">证件照</label>
                   	<input type="file" name="a_idPicPath" id="a_idPicPath"/>
                    <font color="red"></font>
                </div>
                  <div>
                	<input type="hidden" id="errorinfo_wp" value="${uploadWpError}"/>
                    <label for="a_idPicPath">证件照</label>
                   	<input type="file" name="a_workPicPath" id="a_workPicPath"/>
                    <font color="red"></font>
                </div>
               
                <div class="providerAddBtn">
               
                    <input type="button" name="add" id="add" value="保存">
					<input type="button" id="back" name="back" value="返回" >
                </div>
         
            </fm:form>
     </div>
</div>
</section>
<%@include file="common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/provideradd.js"></script>
